<?php
//距离转化
function format_jl($size) {
    $units = array('m', ' km');
    for ($i = 0; $size >= 1000 && $i < 1; $i++) {
        $size /= 1000;
    }
    return round($size, 2).$units[$i];
}
function delTime($time){
    $str='';
    $hour=floor($time/3600);
    $minue=floor(($time%3600)/60);
    if($hour!=0){
        $str.=$hour."小时";
    }
    $str.=$minue."分钟";
    return $str;
}